count the triplets

visit shbcf.ru